package com.ky.common.dto;

import java.io.Serializable;

public class Dto<T> implements Serializable{

	private String key;
	private int code;
	private String errorMsg;
	private T  data;
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public Dto(String key, int code, String errorMsg, T data) {
		super();
		this.key = key;
		this.code = code;
		this.errorMsg = errorMsg;
		this.data = data;
	}
	public Dto() {
		super();
	}
	@Override
	public String toString() {
		return "Dto [key=" + key + ", code=" + code + ", errorMsg=" + errorMsg + ", data=" + data + "]";
	}
	
	
}
